//#include "stdafx.h"
#include <windows.h>
#include <WinCred.h>
#include <stdio.h>
#include <initguid.h>
#include "../SampleHardwareEventCredentialProvider/Debug.h"
DEFINE_GUID(CLSID_trer, 0x75a22df0, 0xb81d, 0x46ed, 0xb1, 0x19, 0xcd, 0x30, 0x50, 0x7b, 0xd6, 0x15);

int main()
{


	DEBUG_MSG(GuidToString(CLSID_trer));


	char buf[MAX_PATH];

	
   //_snprintf(buf, sizeof(buf),"%x",CLSID_trer);

	//sprintf(buf,"%x",CLSID_trer);


	MessageBox(NULL,TEXT(""),NULL,MB_OK);
	HMODULE hand=LoadLibrary(TEXT("SampleHardwareEventCredentialProvider.dll"));

		if(hand==NULL)
			return 0;


	BOOL save = false;
	DWORD authPackage = 0;
	LPVOID authBuffer;
	ULONG authBufferSize = 0;
	CREDUI_INFO credUiInfo;

	credUiInfo.pszCaptionText = TEXT("My caption");
	credUiInfo.pszMessageText = TEXT("My message");
	credUiInfo.cbSize = sizeof(credUiInfo);
	credUiInfo.hbmBanner = NULL;
	credUiInfo.hwndParent = NULL;

	//CredUIPromptForWindowsCredentials(&(credUiInfo), 0, &(authPackage), 
	//	NULL, 0, &authBuffer, &authBufferSize, &(save), 0);
}
